package cn.liulingfengyu.behavioralpatterns.visitorpattern;

/**
 * 具体元素B
 */
public class ElementB implements Element {
    @Override
    public void accept(Visitor visitor) {
        visitor.visitElementB(this);
    }

    public void operationB() {
        System.out.println("ElementB 的操作");
    }
}